package com.company.bkst;

import java.sql.Date;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import antlr.collections.List;

@XmlRootElement(name = "Order")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public class Order {
	
	private String orderID;
	private Book book;
	private Integer quantity;
	private java.util.Date date_purchase;
	private Date date_cancel;
	
	
	public Order(){}
	

	public Order(Book book, Integer quantity) {
		this.book = book;
		this.quantity = quantity;
	}


	public String getOrderID() {
		return orderID;
	}

	public void setOrderID(String orderID) {
		this.orderID = orderID;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}


	public Integer getQuantity() {
		return quantity;
	}


	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}


	public Date getDate_purchase() {
		return (Date) date_purchase;
	}


	public void setDate_purchase(Date date_purchase) {
		this.date_purchase = date_purchase;
	}


	public Date getDate_cancel() {
		return date_cancel;
	}


	public void setDate_cancel(Date date_cancel) {
		this.date_cancel = date_cancel;
	}

}
